   <!-- Content Bar Header -->
      <?php
      $auth = Auth::getAuth('current_user');
         if($auth['user_level_id']=="2"){
            echo $this->setInclude("contentHeader",null,null,null);
         }
      ?>
<div class="content_wrapper">
   <div class="mainContent">
      <div>
         <div class="widget">
            <div class="head">
               <div class="title_head">
                  <i class="icon-reorder"></i> List of Forms
               </div>
               <div class="pull-right" style="margin:5px;">
                  <input type="text" class="input-search search-forms-value" placeholder="Search">
               </div>
            </div>
            <div class="form-list-wrapper">
         <?php
            $db = new Database();
            // $getForms = $db->query("SELECT *,w.id as wsID FROM tb_workspace w
            //                        LEFT JOIN tbuser u on u.id=w.created_by
            //                        WHERE w.company_id={$db->escape($auth['company_id'])} AND w.is_active={$db->escape(1)}","array");
            $search = new Search();
            $getForms = $search->getForms("");
            if(count($getForms)==0){
                  ?>
               <div class="notification_wrapper" style="height:auto">
                  <div class="wrong" style="width:98.5%">
                     <div class="padding_5">
                        <img src="/images/warning/wrong.png" width="22" height="19" class="img-notification-position">
                        <div class="notification-position">No Record Found</div>
                     </div>
                  </div>
               </div>
               <?php
            }
               foreach($getForms as $forms){
                  
               $formID = $forms['wsID']; //functions::encrypt_decrypt("encrypt", $forms['wsID']);
         ?>
               <div class="supTicket nobg">
                  <div class="issueType">
                     <span class="issueInfo"><?php echo $forms['form_name']; ?></span>
                     <span class="issueNum">
                        <a href="/formbuilder?formID=<?php echo $formID; ?>&view_type=edit" class="tip cursor" data-original-title="Edit" data-placement="top" id="" data-form-id="<?php echo $formID; ?>">
                           <button class="btn-basicBtn padding_5 cursor">
                              <i class="icon-edit" ></i>
                           </button>
                        </a>
                        <!-- <button class="btn-basicBtn padding_5"><a class="tip cursor" data-original-title="View" data-placement="top" id="" data-form-id="<?php echo $formID; ?>"><i class="icon-search" ></i></a></button> -->
                        <a class="tip cursor update_status_form" data-original-title="<?php echo functions::getStatus_revert($forms['ws_status']) ?>" data-status="<?php echo $forms['ws_status'] ?>" data-placement="top" id="" data-id="<?php echo $formID; ?>"><button class="btn-basicBtn padding_5 cursor"><i class="icon-globe"></i></button></a>
                     </span>
                  </div>
                  
                  <div class="issueSummary">
                        <a href="#" title="" class="pull-left"><i style="height:30px; width:30px;font-size:30px;color: #676767;" class="icon-reorder"></i></a>	
                     <div class="ticketInfo">
                        <ul>
                           <li><a href="/formbuilder?formID=<?php echo $formID; ?>&view_type=edit" title=""><?php echo $forms['form_name']; ?></a></li>
                           <li class="even"><strong class="red">[ Form ]</strong></li>
                           <li>Status: <strong class="green"><?php echo functions::getStatus($forms['ws_status']); ?></strong></li>
                           <li class="even"><?php echo $forms['date_created']; ?></li>
                        </ul>
                     </div>
                  </div>
                  
               </div>
            <div class="hr"></div>
         <?php
               }
         ?>
            </div>
         </div>
      </div>
   </div>
   <div class="mainContent_widget">
      <div>
         <div class="widget">
            <div class="head">
               <h5 class="iHelp">Support ticket widget</h5>
               <div class="num">
                  <a href="#" class="redNum">+128</a>
               </div>
            </div>
           
            <div class="supTicket nobg">
               <div class="issueType">
                  <span class="issueInfo">General financial issue</span>
                  <span class="issueNum">[ #21254 ]</span>
               </div>
               
               <div class="issueSummary">
                     <a href="#" title="" class="pull-left"><img src="/images/avatar/small.png" class="avatar" width="30" height="30" alt=""></a>	
                  <div class="ticketInfo">
                     <ul>
                        <li><a href="#" title="">Eugene Kopyov</a></li>
                        <li class="even"><strong class="red">[ High priority ]</strong></li>
                        <li>Status: <strong class="green">[ Pending ]</strong></li>
                        <li class="even">Oct 25, 2011  23:12</li>
                     </ul>
                  </div>
               </div> 
            </div>
         </div>
         
         <div class="widget" style="margin-top: 10px;min-height: 300px;">
            <div class="head">
               <h5 class="iHelp">Support ticket widget</h5>
               <div class="num">
                  <a href="#" class="redNum">+128</a>
               </div>
            </div>
           
           <div class="supTicket nobg">
               <div class="issueType">
                  <span class="issueInfo">General financial issue</span>
                  <span class="issueNum">[ #21254 ]</span>
               </div>
               
               <div class="issueSummary">
                  <a href="#" title="" class="pull-left">
                     <img src="/images/avatar/small.png" class="avatar" width="30" height="30" alt="">
                  </a>	
                  <div class="ticketInfo">
                     <ul>
                        <li><a href="#" title="">Eugene Kopyov</a></li>
                        <li class="even"><strong class="red">[ High priority ]</strong></li>
                        <li>Status: <strong class="green">[ Pending ]</strong></li>
                        <li class="even">Oct 25, 2011  23:12</li>
                     </ul>
                  </div>
               </div> 
            </div>
         </div>
         
         <div class="widget" style="margin-top: 10px;min-height: 300px;">
            <div class="head">
               <h5 class="iHelp">Support ticket widget</h5>
               <div class="num">
                  <a href="#" class="redNum">+128</a>
               </div>
            </div>
           
            <div class="supTicket nobg">
               <div class="issueType">
                  <span class="issueInfo">General financial issue</span>
                  <span class="issueNum">[ #21254 ]</span>
               </div>
               
               <div class="issueSummary">
                  <a href="#" title="" class="pull-left">
                     <img src="/images/avatar/small.png" class="avatar" width="30" height="30" alt="">
                  </a>	
                  <div class="ticketInfo">
                     <ul>
                        <li><a href="#" title="">Eugene Kopyov</a></li>
                        <li class="even"><strong class="red">[ High priority ]</strong></li>
                        <li>Status: <strong class="green">[ Pending ]</strong></li>
                        <li class="even">Oct 25, 2011  23:12</li>
                     </ul>
                  </div>
               </div> 
            </div>
         </div>
         
         
         <div class="widget" style="margin-top: 10px;min-height: 300px;">
            <div class="head">
               <h5 class="iHelp">Support ticket widget</h5>
               <div class="num">
                  <a href="#" class="redNum">+128</a>
               </div>
            </div>
           
            <div class="supTicket nobg">
               <div class="issueType">
                  <span class="issueInfo">General financial issue</span>
                  <span class="issueNum">[ #21254 ]</span>
               </div>
               
               <div class="issueSummary">
                  <a href="#" title="" class="pull-left"><img src="/images/avatar/small.png" class="avatar" width="30" height="30" alt=""></a>	
                  <div class="ticketInfo">
                     <ul>
                        <li><a href="#" title="">Eugene Kopyov</a></li>
                        <li class="even"><strong class="red">[ High priority ]</strong></li>
                        <li>Status: <strong class="green">[ Pending ]</strong></li>
                        <li class="even">Oct 25, 2011  23:12</li>
                     </ul>
                  </div>
               </div> 
            </div>
         </div>
      </div>
   </div>
</div>
